package metier.perso;

import controleur.Controleur;

public class PersoHero extends Perso {
	
	private int exp;
	private int expLvlUp;
	int or;

	public PersoHero(Controleur cont, String[] images, int imagesEnCours, int posX, int posY,
			String nom, int pvMax, int pv, int manaMax, int mana, int level, int or) {
		super(cont, images, imagesEnCours, posX, posY, nom, pvMax, pv, manaMax, mana, level);
		this.or=or;
		exp = 0;
		expLvlUp = 100;
	}
	
	public void gainExp(int exp) {
		this.exp += exp;
		if(this.exp >= expLvlUp) {
			setLevel(getLevel()+1);
			expLvlUp=expLvlUp*250/100; //Augmente de 150% par level (valeur au pif)
		}
	}
}
